﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<GabageFactory.Models.stack_backwater_info>" %>
<%@ Import Namespace="System.Collections.Generic" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	进浆及回水（每日）
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="dolphincontainer">
	    <div id="dolphinnav">
	        <ul>
                <li><a href="/Record/StackWater/<%=ViewData["id"]%>?date=<%=Model.date%>&factoryId=<%=ViewData["factoryId"] %>"><span>水位及水质</span></a></li>
                <li><a href="javascript:return(false);" class="current"><span>进浆及回水</span></a></li>
                <li><a href="/Record/Settle/<%=ViewData["id"] %>?date=<%=Model.date%>&factoryId=<%=ViewData["factoryId"] %>"><span>沉降及位移观测</span></a></li>
                <li><a href="/Record/Ardealite/<%=ViewData["id"] %>?date=<%=Model.date%>&factoryId=<%=ViewData["factoryId"] %>"><span>磷石膏堆积坝</span></a></li>
                <li><a href="/Record/Ditch/<%=ViewData["id"] %>?date=<%=Model.date%>&factoryId=<%=ViewData["factoryId"] %>"><span>截洪沟</span></a></li>
                <li><a href="/Record/PiezometerWell/<%=ViewData["id"] %>?date=<%=Model.date%>&factoryId=<%=ViewData["factoryId"] %>"><span>测压井</span></a></li>
                <li><a href="/Record/PiezometerBase/<%=ViewData["id"] %>?date=<%=Model.date%>&factoryId=<%=ViewData["factoryId"] %>"><span>测压仪</span></a></li>
                <li><a href="/Record/Drain/<%=ViewData["id"] %>?date=<%=Model.date%>&factoryId=<%=ViewData["factoryId"] %>"><span>导渗系统</span></a></li>
	        </ul>
	    </div>
	</div>

    <%
           bool result = (bool)ViewData["success"];
           if(result){ 
        %>
           <div style="margin-top:20px;font-weight:bold;color:blue;text-align:center">进浆及回水更新成功</div>
        <%
        }
        %>

    <% using (Html.BeginForm())
    {%>
        <%= Html.ValidationSummary(true) %>
        <%= Html.HiddenFor(model => model.stack_id) %>
        <%= Html.HiddenFor(model => model.date) %>
        <%= Html.Hidden("factoryId", ViewData["factoryId"]) %>
            
    <table class="tableCss" cellspacing="0" cellpadding="0" align="center" border="0" style="margin-top:10px;">
        <tr>
            <th colspan="2" class="heightrow" align="center" style="text-align:center">
                进浆及回水（每日）
            </th>
        </tr>
        <tr>
            <td class="row1" align="left" width="100px" style="padding-left:20px">测量人员：</td>
            <td class="row1" align="left">
                <%= Html.DropDownList("tester_id", ViewData["users"] as List<SelectListItem>, "请选择", new { style = "width:150px" })%>
                <%= Html.ValidationMessageFor(model => model.tester_id)%>
            </td>
        </tr>
        <tr>
            <td class="row1" align="left" width="100px" style="padding-left:20px">进浆量:</td>
            <td class="row1" align="left">
                <%= Html.TextBoxFor(model => model.flow_amount)%> m<sup>3</sup>/hr
                <%= Html.ValidationMessageFor(model => model.flow_amount)%>
            </td>
        </tr>
        <tr>
            <td class="row1" align="left" style="padding-left:20px">回水量:</td>
            <td class="row1" align="left">
                <%= Html.TextBoxFor(model => model.back_water)%> m<sup>3</sup>/hr
                <%= Html.ValidationMessageFor(model => model.back_water)%>
            </td>
        </tr>
        <tr>
            <td colspan="2" class="row1" align="left" style="padding-left:20px">进浆点：<% if(!string.IsNullOrEmpty((string)ViewData["flowInPic"])){ %><a target="_blank" style="margin-left:10px" href="<%=Url.Content((string)ViewData["flowInPic"]) %>">查看进浆点图</a><%} %></td>
        </tr>
        <tr>
            <td colspan="2" class="row1" style="padding-left:20px">
                <span><input type="radio" name="flow_point" value="1" onclick="resetOther();" <%if (Model.flow_point == 1){ %> checked="checked"<%} %>/>1号</span>
                <span><input type="radio" name="flow_point" value="2" onclick="resetOther();" <%if (Model.flow_point == 2){ %> checked="checked"<%} %>/>2号</span>
                <span><input type="radio" name="flow_point" value="3" onclick="resetOther();" <%if (Model.flow_point == 3){ %> checked="checked"<%} %>/>3号</span>
                <span><input type="radio" name="flow_point" value="4" onclick="resetOther();" <%if (Model.flow_point == 4){ %> checked="checked"<%} %>/>4号</span>
            </td>
        </tr>
        <tr>
            <td colspan="2" class="row1" style="padding-left:20px">
                <span><input id="flow_point_0" name="flow_point" type="radio" onclick="trigOther();" value="0" <%if (Model.flow_point == 0){ %> checked="checked"<%} %>/>其它</span>
                <span id="flow_point_0_text" <%if (Model.flow_point != 0){ %>style="display:none"<%} %>><%=Html.TextBoxFor(model => model.flow_point_other) %></span>
            </td>
        </tr>
        <tr>
            <td colspan="2" class="row1" style="padding-left:20px;padding-top:20px">库区回水方式：</td>
        </tr>
        <tr>
            <td colspan="2" class="row1" style="padding-left:20px"><input type="checkbox" value="1" name="drainage_slides" <%if (Model.drainage_slides == 1){ %> checked="checked"<%} %> />排水斜槽</td>
        </tr>
        <tr>
            <td class="row1" align="left" style="padding-left:20px">入水水深:</td>
            <td class="row1" align="left">
                <%= Html.TextBoxFor(model => model.slide_depth)%> m
                <%= Html.ValidationMessageFor(model => model.slide_depth)%>
            </td>
        </tr>
        <tr>
            <td class="row1" align="left" style="padding-left:20px">入水宽度:</td>
            <td class="row1" align="left">
                <%= Html.TextBoxFor(model => model.slide_width)%> m
                <%= Html.ValidationMessageFor(model => model.slide_width)%>
            </td>
        </tr>
        <tr>
            <td class="row1" align="left" style="padding-left:20px">水下盖板是否覆盖</td>
            <td class="row1" align="left">
                <span><input type="radio" name="is_covered" value="1" <%if (Model.is_covered == 1){ %> checked="checked"<%} %>/>是</span>
                <span><input type="radio" name="is_covered" value="0" <%if (Model.is_covered == 0){ %> checked="checked"<%} %>/>否</span>
            </td>
        </tr>
        <tr>
            <td class="row1" align="left" style="padding-left:20px">防腐层是否完整</td>
            <td class="row1" align="left">
                <span><input type="radio" name="is_complete" value="1" <%if (Model.is_complete == 1){ %> checked="checked"<%} %>/>是</span>
                <span><input type="radio" name="is_complete" value="0" <%if (Model.is_complete == 0){ %> checked="checked"<%} %>/>否</span>
            </td>
        </tr>

        <tr>
            <td colspan="2" class="row1" style="padding-left:20px;padding-top:20px"><input type="checkbox" value="1" name="siphon" <%if (Model.siphon == 1){ %> checked="checked"<%} %> />虹吸</td>
        </tr>
        <tr>
            <td class="row1" align="left" style="padding-left:20px">虹吸流量:</td>
            <td class="row1" align="left">
                <%= Html.TextBoxFor(model => model.siphon_flow)%> m<sup>3</sup>/hr
                <%= Html.ValidationMessageFor(model => model.siphon_flow)%>
            </td>
        </tr>
        <tr>
            <td class="row1" align="left" style="padding-left:20px">虹吸管径:</td>
            <td class="row1" align="left">
                <%= Html.TextBoxFor(model => model.siphon_caliber)%> mm
                <%= Html.ValidationMessageFor(model => model.siphon_caliber)%>
            </td>
        </tr>
        <tr>
            <td class="row1" align="left" style="padding-left:20px">虹吸口入口高程:</td>
            <td class="row1" align="left">
                <%= Html.TextBoxFor(model => model.siphon_in_El)%> m
                <%= Html.ValidationMessageFor(model => model.siphon_in_El)%>
            </td>
        </tr>
        <tr>
            <td class="row1" align="left" style="padding-left:20px">虹吸口出口高程:</td>
            <td class="row1" align="left">
                <%= Html.TextBoxFor(model => model.siphon_out_El)%> m
                <%= Html.ValidationMessageFor(model => model.siphon_out_El)%>
            </td>
        </tr>
        <tr>
            <td class="row1" align="left" style="padding-left:20px">虹吸管长度:</td>
            <td class="row1" align="left">
                <%= Html.TextBoxFor(model => model.siphon_length)%> m
                <%= Html.ValidationMessageFor(model => model.siphon_length)%>
            </td>
        </tr>
        <tr>
            <td colspan="2" class="row1" style="padding-left:20px;padding-top:20px"><input type="checkbox" value="1" name="movable_flow_shaft" <%if (Model.movable_flow_shaft == 1){ %> checked="checked"<%} %> />移动式排洪竖井</td>
        </tr>
        <tr>
            <td colspan="2" class="row1" style="padding-left:20px">
            <div style="margin-top:20px">当日情况补充：</div>
                <div style="margin-top:5px"><%=Html.TextAreaFor(model => model.description, new { cols="80", rows="10"})%></div>
            </td>
        </tr>
    </table>
    <div style="margin-top:25px;text-align:center">
        <input type="submit" value="提    交" style="font-size:16px;font-weight:bold" />
    </div>
    <% } %>
    <script language="javascript" type="text/javascript">
        function trigOther() {
            $("#flow_point_0_text").css("display", "inline");
        }

        function resetOther() {
            document.getElementById("flow_point_other").value = "";
            $("#flow_point_0_text").css("display", "none");
        }
    </script>
</asp:Content>
